//
//  TBModel.m
//  TBTest
//
//  Created by KOSUN on 2017/11/2.
//  Copyright © 2017年 KOSUN. All rights reserved.
//

#import "TBModel.h"

@implementation TBModel

- (instancetype)init{
    if (!self) {
        self = [super init];
    }
    return self;
}

- (void)setListData:(NSArray *)listData
{
    if ( _listData != listData ) {
        _listData = listData;
        _dataSource.listData = _listData;
    }
}

- (TBDataSource *)dataSource
{
    if ( !_dataSource ) {
        _dataSource = [[TBDataSource alloc] init];
    }
    return _dataSource;
}

- (TBDelegate *)delegate
{
    if ( !_delegate ) {
        _delegate = [[TBDelegate alloc] init];
    }
    return _delegate;
}

@end
